package com.wyd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class test2controller {

    @RequestMapping("/test2")
    public String test2(Model model){
        model.addAttribute("msg","Hello SpringMVC annotation");
        return "test1";
    }
}
